﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CadCon.Models;

namespace CadCon.Controllers
{
    public class AdminController : Controller
    {
        //
        // GET: /Admin/
        private CadConEntities _db = new CadConEntities();
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ListarEmpresas()
        {
            IEnumerable<CadCon.Models.Empresa> lista = _db.empresa.Select(e=>e);
            return View(lista);
        }
    }
}
